package com.xy.servlet;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/10 19:46
 * @description
 */


public class UserFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        // 过滤请求
        System.out.println("UserFilter....doFilter");
        // 放行
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {

    }
}
